package com.zhangdi.dwperms.service.impl;

import com.zhangdi.dwperms.service.RoleService;
import com.zhangdi.dwperms.entity.Role;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Override
    public List<Role> findUserRoleByUserId(Long userId) {
        return null;
    }

    @Override
    public List<Role> findUserRoleInTenantByUserId(Long userId) {
        return null;
    }

    @Override
    @Transactional
    public int addRole(Role role) {
        return 1;
    }

    @Transactional
    @Override
    public int addUserRole(Long userId, Long roleId, Long tenantId) {
        return 1;
    }
}
